//
//  WeiboController.h
//  ios_51job
//
//  Created by kai ren on 27/09/2011.
//  Copyright 2011 none. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ACGlobal.h"
#import "WeiboBase.h"

typedef enum {
	WeiboOperationShare,
	WeiboOperationNick
}WeiboOperationType;

typedef enum {
	WeiboSina,
	WeiboTencnet
}WeiboType;

//------------------------------------------------------------------

@protocol WeiboControllerDelegate

@optional

- (void)connectionCompleteWithWeibo:(WeiboType)weibo operation:(WeiboOperationType)operation content:(NSString *)content;

@end


//------------------------------------------------------------------

@interface WeiboController : NSObject{
	NSMutableDictionary *OAuthInfo;
	NSMutableData *_data;
	NSString *content;
	
	BOOL _jobDone;
	
	NSObject<WeiboControllerDelegate> *delegate;
}

@property (retain) NSMutableDictionary *OAuthInfo;
@property (retain) NSString *content;
@property (assign) NSObject<WeiboControllerDelegate> *delegate;;

- (id)init;

//Get catch path
- (NSString *)getCatchPath;

//Read OAuth info from document folder
- (NSMutableDictionary *)ReadOAuthInfo;

- (void)share;
- (void)getNick;

@end
